package com.bdqn.config;

import com.bdqn.T353CrmApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Configuration;

/**
 * 生成war包使用外部Tomcat启动时注入启动类
 *
 * @author LILIBO
 * @since 2021-06-24
 */
@Configuration
public class ServletInitializer extends SpringBootServletInitializer {

    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(T353CrmApplication.class);
    }

}
